<?php

class VideoOrderAction extends SzAbstractAction
{
    Protected $paramTypes = array(
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
        SzAbstractAction::TYPE_INT,
    );

    /**
     * 领取观看视频奖励
     * @param $userId
     * @param $reqTime
     * @param $position
     * @return SzResponse
     * @throws SzException
     */
    public function execute($userId, $reqTime, $position)
    {
        GameService::get()->validateMultiRequestTimeDelta($userId, $reqTime);
        return $this->buildResponse(VideoService::get()->getVideoOrder($userId,$reqTime,$position));
    }
}